package com.norway.sms;

import android.app.Dialog;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;

public class TaskLoadDialogFragment extends DialogFragment
{
	public static TaskLoadDialogFragment newInstance(String messageInfo)
	{
		TaskLoadDialogFragment f = new TaskLoadDialogFragment();
		
		Bundle args = new Bundle();
        args.putString("messageInfo", messageInfo);
        f.setArguments(args);
		
		return f;
	}
	@Override
	public Dialog onCreateDialog(Bundle savedInstanceState)
	{
		String messageInfo=getArguments().getString("messageInfo");
		ProgressDialog mProgressDialog=new ProgressDialog(getActivity());
		mProgressDialog.setMessage(messageInfo);
		return mProgressDialog;
	}

}
